<template>
	<div class="wrapper">
		<div class="module-title">
			<div class="title-text">
				<img src="../../../assets/images/jiantou.png" alt="" />
				<h6>{{ name }}</h6>
			</div>
			<div class="time-setting">
				<slot name="header"></slot>
			</div>
		</div>
		<div class="display-statistical-data">
			<slot name="footer"></slot>
		</div>
	</div>
</template>

<script>
export default {
	props: ["name"]
}
</script>

<style lang="scss" scoped>
.wrapper {
	width: 100%;
	height: 100%;
	background: url("../../../assets/images/rectangle1.png") no-repeat;
	background-size: 100% 100%;
	.module-title {
		width: 100%;
		height: 3.375rem;
		background: url("../../../assets/images/titltBG1.png") no-repeat;
		background-size: 100% 100%;
		background-position: center -3px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		overflow: hidden;
		padding-right: 10px;
		padding-bottom: 4px;
		.title-text {
			width: 45%;
			height: 100%;
			overflow: hidden;
			display: flex;
			align-items: center;
			h6 {
				font-family: Microsoft YaHei;
				font-weight: bold;
				font-size: 1.25rem;
				letter-spacing: 2px;
				white-space: nowrap;
				text-overflow: ellipsis;
				overflow: hidden;
				color: #00ebff;
				font-style: italic;
				background: linear-gradient(0deg, #00d2ff 0%, #d5f3ff 100%);
				background-clip: text;
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
				margin: 0;
			}
		}
		.time-setting {
			width: 55%;
			text-align: right;
		}
	}
	.display-statistical-data {
		height: calc(100% - 3.375rem);
		width: 100%;
		overflow: hidden;
	}
}
</style>
